package Day01;

import java.sql.SQLOutput;
import java.util.Scanner;

public class Text4 {
    public static void main(String[] args) {
        //打印星星
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextInt()) { // 注意 while 处理多个 case
           int a = in.nextInt();
           for(int i = 0; i < a; i++){
               for(int j = 0; j < a; j++){
                   if((i == j) || (j + i) == (a - 1)){
                       System.out.print("*");
                   }else{
                       System.out.print(" ");
                   }
               }
               System.out.println();
           }
        }
    }
}
